﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace stsdev.Builders.SourceFiles
{
    public enum SourceFileType : int
    {
        None,
        Compile,
        Content,
        EmbeddedResource
    }

    public class SourceFile
    {
        private string FileName;
        private SourceFileType FileType;

        public SourceFile(string filename, SourceFileType filetype)
        {
            FileName = filename;
            FileType = filetype;
        }

        public void ToString(XmlWriter writer)
        {
            writer.WriteStartElement(FileType.ToString());
            writer.WriteAttributeString("Include", FileName);
            writer.WriteEndElement();
        }
    }
}
